<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>公告</title>
    <meta name="viewport" content="initial-scale=1, maximum-scale=1">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="stylesheet" href="//g.alicdn.com/msui/sm/0.6.2/css/sm.min.css">
    <link rel="stylesheet" href="//g.alicdn.com/msui/sm/0.6.2/css/sm-extend.min.css">
    <style type="text/css">
    </style>
</head>

<body>
    <div class="content">
        <h3 class="col-xs-12 text-center"></h3>
        <p class="col-xs-12" style="text-indent:2em;"></p>
    </div>
    <script type='text/javascript' src='http://g.alicdn.com/sj/lib/zepto/zepto.min.js' charset='utf-8'></script>
    <script type='text/javascript' src='http://g.alicdn.com/msui/sm/0.6.2/js/sm.min.js' charset='utf-8'></script>
    <script type='text/javascript' src='http://g.alicdn.com/msui/sm/0.6.2/js/sm-extend.min.js' charset='utf-8'></script>
    <script type="text/javascript" src='js/common.js'></script>
    <script type="text/javascript">
        var id = getUrlParam('id');
        $.ajax({
            type: 'GET',
            url: requestBaseUrl + 'companies/notices/' + id,
            headers: {
                'Authorization': 'Bearer '+ getToken()
            },
            success: function(response) {
                if(response.status == 10001) {
                    $('h3').text(response.data.title);
                    $('p').text(response.data.content);
                }else{
                    $.toast('加载公告信息失败');    
                }
            },
            error: function(jqXHR, textStatus, errorThrown) {
                $.toast('加载公告信息失败' + jqXHR.status);
            }
        })
    </script>
</body>

</html>
<!--